<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreatePointCardTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('point_card', function (Blueprint $table) {
            $table->increments('id')->comment('积分卡');
            $table->string('images')->comment('图片');
            $table->integer('profit')->unsigned()->comment('积分卡收益');
            $table->decimal('price', 8, 2)->unsigned()->comment('价格');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
